Skip to content

Conversation

@fyrchik
Copy link
Contributor

@fyrchik fyrchik commented Oct 7, 2021

Fix #857 .

@codecov
Copy link

codecov bot commented Oct 7, 2021

Codecov Report

Merging #893 (19dc15b) into master (6b1e645) will increase coverage by 0.15%.
The diff coverage is 94.11%.

❗ Current head 19dc15b differs from pull request most recent head 2a2bb5d. Consider uploading reports for the commit 2a2bb5d to get more accurate results
Impacted file tree graph

@@            Coverage Diff             @@
##           master     #893      +/-   ##
==========================================
+ Coverage   39.16%   39.32%   +0.15%     
==========================================
  Files         244      244              
  Lines       12178    12212      +34     
==========================================
+ Hits         4770     4802      +32     
- Misses       7013     7014       +1     
- Partials      395      396       +1     
Impacted Files Coverage Δ
cmd/neofs-node/config/cast.go 89.87% <94.11%> (+3.20%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 6b1e645...2a2bb5d. Read the comment docs.

@fyrchik
Copy link
Contributor Author

fyrchik commented Oct 7, 2021

See also spf13/cast#129 .

@532910
Copy link

532910 commented Oct 7, 2021

I believe at least terabytes should be supported. BTW, what about floats, like .5Tb for example?

Copy link
Contributor

@cthulhu-rider cthulhu-rider left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@fyrchik pls don't forget to fix linter's remark

@fyrchik
Copy link
Contributor Author

fyrchik commented Oct 8, 2021

@532910 floats are not supported, at least for now. I will add TB suffixes.

The code is taken from viper as `cast` package that we use
doesn't have needed converter.

Signed-off-by: Evgenii Stratonikov <evgeniy@nspcc.ru>
Signed-off-by: Evgenii Stratonikov <evgeniy@nspcc.ru>
@cthulhu-rider cthulhu-rider merged commit 00f14d4 into nspcc-dev:master Oct 8, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

size multiplicative suffixes support

3 participants